package com.qf.sl.youshare.model;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * Created by IDEA
 * User : SL
 * on  2015/2/19.
 * 21:21
 */
public class UserLogin {
    private String result;
    private String sessionId;
    private String userId;

    public void parseJson(JSONObject jsonObject){
        try {
            result = jsonObject.getString("result");
            sessionId = jsonObject.getString("sessionid");
            userId = jsonObject.getString("user_id");
        } catch (JSONException e) {
            e.printStackTrace();
        }
    }

    public String getResult() {
        return result;
    }

    public String getSessionId() {
        return sessionId;
    }

    public String getUserId() {
        return userId;
    }
}
